package com.park.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.dao.BillingInformationMapper;
import com.park.model.BillingInformation;
import com.park.service.BillingInformationService;

@Service
public class BillingInformationServiceImpl implements BillingInformationService {

	@Autowired
	private BillingInformationMapper billingInformationMapper;
	@Override
	public List<BillingInformation> getInfo(String userId) {
		// TODO Auto-generated method stub
		return billingInformationMapper.getInfo(userId);
	}
	@Override
	public int insert(BillingInformation billingInformation) {
		// TODO Auto-generated method stub
		return billingInformationMapper.insert(billingInformation);
	}
	@Override
	public int update(BillingInformation billingInformation) {
		// TODO Auto-generated method stub
		return billingInformationMapper.updateByPrimaryKeySelective(billingInformation);
	}
	@Override
	public BillingInformation get(String userId, String gmfNsrsbh) {
		// TODO Auto-generated method stub
		return billingInformationMapper.get(userId,gmfNsrsbh);
	}

}
